import Artery from '../src/components/utils/Artery'
import modal from '../src/components/components/popup/modal'
import { formatDate } from '../src/components/components/form/date-picker/util'
export default {
  install(Vue) {
    if (!window.Artery) {
      window.Artery = Artery
    }
    Vue.prototype.$Modal = modal
    Vue.prototype.dateFormat = formatDate
    // table中的fomatter属性会用到
    Vue.prototype.df = function(formatter) {
      return function (value) {
        return formatDate(value, formatter)
      }
    }
  }
}
